import request from "../utils/request.js"
// import store from "../store/index.js"

export const denglu=(data)=>{
  return request({
    method:"post",
    url:"/index/login",
    data
  })
}

export const zhuce=(data)=>{
  return request({
    method:"post",
    url:"/index/reg",
    data
  })
}

// 获取用户资料
export const getUserInfo = ()=>{
  return request({
    url:'/user/getUserInfo',
    // headers:{
    //   token:store.getters.token
    // }
  })
}